<? 
$ao = $args['area'];
if (!db::isError($area)) {
	$result = $ao->getMedia(1);
	if (count($result) > 0) { 
		$list = true;
		$media = array();
		foreach($result as $mi) {
			$mit = new SectionTemplate;
			$mit->file = "media_file.php";
			$mit->args['media'] = $mi;
			if ($args['url']) {
				$mit->args['url'] = $args['url'];
			}
			$media[] = $mit;
		}
	}
}